﻿using UnityEngine;
using System.Collections;

public class Ring : MonoBehaviour 
{
	public AudioClip soundfx;	

	
	void OnTriggerEnter (Collider other)
	{
		if(other.gameObject.tag == "Player")
			{
				audio.Play();
				renderer.enabled = false;
				collider.enabled = false;
				Player.score += 100;
			}
	
	}
	
}


/*public class Ring : MonoBehaviour 
{
	public AudioClip soundfx;	
	
	
	void OnTriggerEnter (Collider other)
	{
		if(other.gameObject.tag == "Item")
		{
			audio.Play();
			Destroy(other.gameObject);
			Player.score += 100;
		}
		
	}
	
}*/